package com.beiye.drivertransport.bean;

import java.io.Serializable;
import java.util.List;

/**
 * Created by ky on 2018/1/19.
 */

public class DaikaoAndHavetestCourseBean {

    /**
     * result : true
     * data : null
     * msg : 操作成功
     * rows : [{"userId":null,"uqpSn":null,"qSn":101,"userOption":"A","rightMark":null,"sn":22,"questionDesc":"测试1","url":"/upload/img/201712221118158687617.jpg","optionA":"测试A","optionB":"测试B","optionC":"测试C","optionD":"测试D","rightOption":null,"score":10,"seqNo":1,"resultCode":null},{"userId":null,"uqpSn":null,"qSn":102,"userOption":"A","rightMark":null,"sn":21,"questionDesc":"驾驶机动车在道路上违反道路交通安全法的行为，属于什么行为？","url":null,"optionA":"过失行为","optionB":"违章行为","optionC":"违法行为","optionD":"违规行为","rightOption":null,"score":10,"seqNo":2,"resultCode":null},{"userId":null,"uqpSn":null,"qSn":103,"userOption":"A","rightMark":null,"sn":23,"questionDesc":"驾驶机动车违反道路交通安全法律法规发生交通事故属于交通违章行为。","url":null,"optionA":"正确","optionB":"错误","optionC":null,"optionD":null,"rightOption":null,"score":10,"seqNo":3,"resultCode":null}]
     * total : 3
     * code : 0
     */

    /**
     * 单项选择题
     */
    public static final int TYPE_Single_Choice = 1;
    /**
     * 判断题
     */
    public static final int TYPE_True_OR_False = 3;
    /**
     * 多项选择题
     */
    public static final int TYPE_Multiple_Choice = 2;

    public static String getQuestionTypeStr(int type){
        switch (type){
            case TYPE_Single_Choice:
                return "单选题";
            case TYPE_True_OR_False:
                return "判断题";
            case TYPE_Multiple_Choice:
                return "多选题";
        }
        return "单选题";
    }


    private boolean result;
    private Object data;
    private String msg;
    private int total;
    private int code;
    private List<RowsBean> rows;

    public boolean isResult() {
        return result;
    }

    public void setResult(boolean result) {
        this.result = result;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public List<RowsBean> getRows() {
        return rows;
    }

    public void setRows(List<RowsBean> rows) {
        this.rows = rows;
    }

    public static class RowsBean implements Serializable{
        /**
         * userId : null
         * uqpSn : null
         * qSn : 101
         * userOption : A
         * rightMark : null
         * sn : 22
         * questionDesc : 测试1
         * url : /upload/img/201712221118158687617.jpg
         * optionA : 测试A
         * optionB : 测试B
         * optionC : 测试C
         * optionD : 测试D
         * rightOption : null
         * score : 10
         * seqNo : 1
         * resultCode : null
         */

        private Object userId;
        private Object uqpSn;
        private int qSn;
        private String userOption;
        private int rightMark;
        private int sn;
        private int qtype;//测验题类型
        private int relSn;//关联序列号，同一个案例下的测验题关联序列号相同
        private String questionDesc;//问题描述
        private String questionDesc2;//案例描述
        private String url;
        private String optionA;
        private String optionB;
        private String optionC;
        private String optionD;
        private String optionE;
        private String optionF;
        private String rightOption;
        private float score;
        private int seqNo;
        private Object resultCode;
        private int checked;
        private boolean isSelect;

        private int question_select=-1;//判断有没有 做题
        private int question_select1=-1;//判断有没有 做题
        private int question_select2=-1;//判断有没有 做题
        private int question_select3=-1;//判断有没有 做题
        private int question_select4=-1;//判断有没有 做题
        private int question_select5=-1;//判断有没有 做题
        private int question_select6=-1;//判断有没有 做题

        public int getQuestion_select6() {
            return question_select6;
        }

        public void setQuestion_select6(int question_select6) {
            this.question_select6 = question_select6;
        }

        public int getRelSn() {
            return relSn;
        }

        public void setRelSn(int relSn) {
            this.relSn = relSn;
        }

        public String getQuestionDesc2() {
            return questionDesc2;
        }

        public void setQuestionDesc2(String questionDesc2) {
            this.questionDesc2 = questionDesc2;
        }

        public String getOptionF() {
            return optionF;
        }

        public void setOptionF(String optionF) {
            this.optionF = optionF;
        }

        public String getOptionE() {
            return optionE;
        }

        public void setOptionE(String optionE) {
            this.optionE = optionE;
        }

        public int getQuestion_select5() {
            return question_select5;
        }

        public void setQuestion_select5(int question_select5) {
            this.question_select5 = question_select5;
        }

        public int getQuestion_select1() {
            return question_select1;
        }

        public void setQuestion_select1(int question_select1) {
            this.question_select1 = question_select1;
        }

        public int getQuestion_select2() {
            return question_select2;
        }

        public void setQuestion_select2(int question_select2) {
            this.question_select2 = question_select2;
        }

        public int getQuestion_select3() {
            return question_select3;
        }

        public void setQuestion_select3(int question_select3) {
            this.question_select3 = question_select3;
        }

        public int getQuestion_select4() {
            return question_select4;
        }

        public void setQuestion_select4(int question_select4) {
            this.question_select4 = question_select4;
        }

        public int getQuestion_select() {
            return question_select;
        }

        public void setQuestion_select(int question_select) {
            this.question_select = question_select;
        }

        public boolean isSelect() {
            return isSelect;

        }

        public void setSelect(boolean select) {
            isSelect = select;
        }

        public int getQtype() {
            return qtype;
        }

        public void setQtype(int qtype) {
            this.qtype = qtype;
        }
        public int getChecked() {
            return checked;
        }

        public void setChecked(int checked) {
            this.checked = checked;
        }



        public int getqSn() {
            return qSn;
        }

        public void setqSn(int qSn) {
            this.qSn = qSn;
        }

//        public int getQuestion_select() {
//            return question_select;
//        }
//
//        public void setQuestion_select(int question_select) {
//            this.question_select = question_select;
//        }

        public Object getUserId() {
            return userId;
        }

        public void setUserId(Object userId) {
            this.userId = userId;
        }

        public Object getUqpSn() {
            return uqpSn;
        }

        public void setUqpSn(Object uqpSn) {
            this.uqpSn = uqpSn;
        }

        public int getQSn() {
            return qSn;
        }

        public void setQSn(int qSn) {
            this.qSn = qSn;
        }

        public String getUserOption() {
            return userOption;
        }

        public void setUserOption(String userOption) {
            this.userOption = userOption;
        }

        public int getRightMark() {
            return rightMark;
        }

        public void setRightMark(int rightMark) {
            this.rightMark = rightMark;
        }

        public int getSn() {
            return sn;
        }

        public void setSn(int sn) {
            this.sn = sn;
        }

        public String getQuestionDesc() {
            return questionDesc;
        }

        public void setQuestionDesc(String questionDesc) {
            this.questionDesc = questionDesc;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public String getOptionA() {
            return optionA;
        }

        public void setOptionA(String optionA) {
            this.optionA = optionA;
        }

        public String getOptionB() {
            return optionB;
        }

        public void setOptionB(String optionB) {
            this.optionB = optionB;
        }

        public String getOptionC() {
            return optionC;
        }

        public void setOptionC(String optionC) {
            this.optionC = optionC;
        }

        public String getOptionD() {
            return optionD;
        }

        public void setOptionD(String optionD) {
            this.optionD = optionD;
        }

        public String getRightOption() {
            return rightOption;
        }

        public void setRightOption(String rightOption) {
            this.rightOption = rightOption;
        }

        public float getScore() {
            return score;
        }

        public void setScore(float score) {
            this.score = score;
        }

        public int getSeqNo() {
            return seqNo;
        }

        public void setSeqNo(int seqNo) {
            this.seqNo = seqNo;
        }

        public Object getResultCode() {
            return resultCode;
        }

        public void setResultCode(Object resultCode) {
            this.resultCode = resultCode;
        }
    }
}
